package behavior.mediator;

/**
 * @author dali
 * @date 2021-07-27 10:48
 * @Description 抽象同事
 */

public abstract class Colleague {
    protected Mediator mediator;
    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }
    //接收
    public abstract void receive();
    //发送
    public abstract void send();
}
